﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HienThi.aspx.cs" Inherits="WebApplication2.HienThi" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/ThemDL.aspx">Thêm</asp:HyperLink>
        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/TimKiem.aspx">Tìm kiếm</asp:HyperLink>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="MaSach" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="MaSach" HeaderText="MaSach" ReadOnly="True" 
                    SortExpression="MaSach" />
                <asp:BoundField DataField="TenSach" HeaderText="TenSach" 
                    SortExpression="TenSach" />
                <asp:BoundField DataField="TheLoai" HeaderText="TheLoai" 
                    SortExpression="TheLoai" />
                <asp:BoundField DataField="SoTrang" HeaderText="SoTrang" 
                    SortExpression="SoTrang" />
                <asp:BoundField DataField="DonGia" HeaderText="DonGia" 
                    SortExpression="DonGia" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:QLThuVienConnectionString2 %>" 
            SelectCommand="SELECT * FROM [Sach]"></asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>
